package com.gitee.poi.plugin.test;

import com.gitee.poi.plugin.annotations.core.AutoSizeColumn;
import com.gitee.poi.plugin.annotations.core.Column;
import com.gitee.poi.plugin.annotations.data.DateFormat;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

/**
 * @author wangxin
 * @time 2018/10/30 16:03
 */
@AutoSizeColumn
public class UserExtend extends User{

    @DateFormat("0.00")
    @Column("平均分")
    private double avg;

    @Column("年龄")
    private BigInteger age;

    @Column("金钱")
    private BigDecimal money;

    @Column("性别")
    private boolean sex;

    @Column("生日")
    @DateFormat
    private Date date;

    @Column("书包")
    private int pack;

    @Column("指标")
    private float indicator;

    @Column("时间")
    @DateFormat("yyyy-MM-dd")
    private Date time;

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public double getAvg() {
        return avg;
    }

    public void setAvg(double avg) {
        this.avg = avg;
    }

    public BigInteger getAge() {
        return age;
    }

    public void setAge(BigInteger age) {
        this.age = age;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getPack() {
        return pack;
    }

    public void setPack(int pack) {
        this.pack = pack;
    }

    public float getIndicator() {
        return indicator;
    }

    public void setIndicator(float indicator) {
        this.indicator = indicator;
    }

    @Override
    public String toString() {
        return "UserExtend{" +
                "uid=" + getUid() +
                ", uname='" + getUname() + '\'' +
                ", fid=" + getFid() +
                ", fname='" + getFname() + '\'' +
                ", role=" + getRole() +
                ", avg=" + avg +
                ", age=" + age +
                ", money=" + money +
                ", sex=" + sex +
                ", date=" + date +
                '}';
    }
}
